php remove last 3 letters from string

116

php substr remove last 4 characters -

echo substr($string, 0, -3);

Comments

Submit
0 Comments